package com.xingmang.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @auther: hansom
 * @Version: 1.0
 * @create 2023/4/21 10:30
 */
@Getter
@AllArgsConstructor
public enum ResultCode {
    SUCCESS(1,"成功"),

    FAIL(0,"失败"),

    ERROR(500,"服务器异常"),

    UNAUTHORIZED(401, "无效token"),

    FORBIDDEN(403, "没有权限操作，请后台添加相应权限"),

    NOT_FOUND(404, "接口不存在"),

    AUTH_ERROR(-10000, "鉴权登陆失败，请重新登录！"),
    ;
    private Integer code;
    private String msg;
}
